#include "mystdio.h"
#include <unistd.h>
#include <string.h>
#define filename "log.txt"

int main()
{
  const char* mesg = "text file op!\n";
  const char* mesg1 = "text out_buffer!\n";
  _FILE* pf = _fopen(filename , "w");
  _fwrite((void*)mesg, strlen(mesg), pf);
  sleep(10);
  _fwrite((void*)mesg1, strlen(mesg1), pf);
  _fclose(pf);
}
